<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        #show {
            width: 400px;
            height: 400px;
            text-align: center;
            line-height: 400px;
            background: skyblue;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            margin: auto;
            font-size: 30px;
        }
    </style>
</head>


<body>
    <div id="show">
    </div>
    <button onclick="random()">点名</button>
    <script>
        function random() {


            var arr = [
                "王君豪",
                "刘礼琛",
                "张后亮",
                "张炜基",
                "孟龙",
                "闫杰",
                "王子朋",
                "孟晓鹏",
                "汤格格",
                "赵明宇",
                "方昊",
                "高金哲",
                "张鹏飞",
                "魏楠",
                "王益民",
                "岳松源",
                "刘之航",
                "李天庆",
                "张栋",
                "付权睿",
                "王侯帮",
                "韩一凡",
                "张康奇",
                "刘朝阳",
                "任德伟",
                "于明洋",
                "鲁德昆",
                "杨承谕"
            ]
            var random = Math.floor(Math.random() * arr.length);
            show.innerHTML = arr[random]
        }
    </script>
</body>

</html>